package com.bwie.mq;

import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("mqProducer")
public class MQProducerImpl implements MQProducer {
	
	@Autowired
	private AmqpTemplate amqpTemplate;
	
	@Override
	public void sendDataToQueue(String queueKey, Object object) {
		amqpTemplate.convertAndSend(queueKey, object);
	}

}
